package com.zhentao.service;

import io.minio.errors.*;

import java.io.IOException;
import java.io.InputStream;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * @Date 2025/3/10 18:04
 * @Author neko
 **/
public interface FileService {
    //上传
    public String uploadHtml(String fileName, InputStream inputStream);
    public String uploadImage(String fileName,InputStream inputStream) throws IOException, ServerException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    //删除
    public void delete(String fileName);

    String downloadFile(String fileName, InputStream filePath) throws ServerException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    //下载


}
